import 'package:local_coffee/components/rgba.dart';
import 'package:flutter/material.dart';

class TakeOutBtn extends StatelessWidget {
  
  const TakeOutBtn({
    Key key
  }) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Container(
      padding: EdgeInsets.all(3),
      width: 90,
      height: 35,
      decoration: BoxDecoration(
        border: Border.all(
          width: 1,
          color: RGBA.rgba88afd5
        )
      ),
      child: Row(
        mainAxisAlignment: MainAxisAlignment.spaceBetween,
        children: <Widget>[
          Container(
            width: 44,
            height: 30,
            alignment: Alignment.center,
            decoration: BoxDecoration(
              color: RGBA.rgba88afd5,
              borderRadius: BorderRadius.circular(15)
            ),
            child: Text(
              '自提',
              style: TextStyle(
                color: RGBA.rgbaffffff1,
                fontSize: 12
              ),
            ),
          ),
          Container(
            height: 30,
            margin: EdgeInsets.only(right: 9),
            alignment: Alignment.center,
            decoration: BoxDecoration(
              borderRadius: BorderRadius.circular(15)
            ),
            child: Text(
              '外送',
              style: TextStyle(
                color: RGBA.rgba88afd5,
                fontSize: 12
              ),
            ),
          )
        ],
      ),
    );
  }
}